package homework3;

public class SalariedEmployee extends ColaEmployee {
    private int salariedMon;


    //计算工资


    @Override
    public int getSalary(int month) {
        if(super.getBirthMonth()==month)
        {
            return salariedMon+100;
        }
        return salariedMon;
    }

    //
    public SalariedEmployee()
    {

    }
    public SalariedEmployee(String emName, int birthMonth, int salariedMon) {
        super(emName, birthMonth);
        this.salariedMon = salariedMon;
    }

    public int getSalariedMon() {
        return salariedMon;
    }

    public void setSalariedMon(int salariedMon) {
        this.salariedMon = salariedMon;
    }
}
